<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= htmlWebpackPlugin.options.title %></title>
    <!-- GrowingIO Analytics code version 2.1 -->
    <!-- Copyright 2015-2018 GrowingIO, Inc. More info available at http://www.growingio.com -->

    <script type='text/javascript'>
      const env = "<%= NODE_ENV %>"
      console.log(env);
      let envId = 'ae2eee21ce6f705e' // 生产环境
      switch (env) {
        case 'development':
          envId = '93c2e11b0ba77242' //开发环境
          break;
        case 'test':
          envId = '93c2e11b0ba77242' //开发环境
          break;
        case 'stage':
          envId = '8f373f4cb80da3d5' // 预生产环境
          break;
        default:
          break;
      }
      console.log(envId);
      !function(e,t,n,g,i){e[i]=e[i]||function(){(e[i].q=e[i].q||[]).push(arguments)},n=t.createElement("script"),tag=t.getElementsByTagName("script")[0],n.async=1,n.src=('https:'==document.location.protocol?'https://':'http://')+g,tag.parentNode.insertBefore(n,tag)}(window,document,"script","assets.giocdn.com/2.1/gio.js","gio");
      gio('init',envId, {});

      //custom page code begin here
      gio('config', {'hashtag':true});
      //custom page code end here

      gio('send');

    </script>

    <!-- End GrowingIO Analytics code version: 2.1 -->
  </head>
  <body>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
